/**
 * Created by hanj on 2021/1/29 16:46
 */
package com.example.demo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import lombok.Data;

/**
 * 学生
 */
@Data
public class Student {

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 0)
    private String name;

    /**
     * 年龄
     */
    @ExcelProperty(value = "asda,年龄", index = 1)
    private int age;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 2)
    private String sex;

    /**
     * 学号
     */
    @ExcelProperty(value = "学号", index = 3)
    private long num;

    /**
     * 家庭地址
     */
    @ExcelProperty(value = "家庭地址", index = 4)
    private String address;

    /**
     * 成绩
     */
    @ExcelProperty(value = "成绩", index = 5)
    @ExcelIgnore
    private Integer fraction;
}
